package com.example.a_lib.http.interceptor

import android.content.Context
import com.example.a_lib.http.UserAgentBuilder
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException

/**
 * Created by xiedongdong on 2020/01/18
 */
class UserAgentInterceptor : Interceptor {

    @Throws(IOException::class)
    override fun intercept(chain: Interceptor.Chain): Response {
        val original = chain.request()
        val request = original.newBuilder().build()
        return chain.proceed(request)
    }

}